import request from '@/utils/request'

// 查询商品分类列表
export function listGoodskinds(query) {
  return request({
    url: '/wx/goodskinds/list',
    method: 'get',
    params: query
  })
}

// 查询商品分类详细
export function getGoodskinds(kindsId) {
  return request({
    url: '/wx/goodskinds/' + kindsId,
    method: 'get'
  })
}



// 新增商品分类
export function addGoodskinds(data) {
  return request({
    url: '/wx/goodskinds',
    method: 'post',
    data: data
  })
}

// 修改商品分类
export function updateGoodskinds(data) {
  return request({
    url: '/wx/goodskinds',
    method: 'put',
    data: data
  })
}

// 删除商品分类
export function delGoodskinds(kindsId) {
  return request({
    url: '/wx/goodskinds/' + kindsId,
    method: 'delete'
  })
}

// 导出商品分类
export function exportGoodskinds(query) {
  return request({
    url: '/wx/goodskinds/export',
    method: 'get',
    params: query
  })
}
